package com.cloudree.gllib.util;

import android.support.v4.app.Fragment;

import com.cloudree.gllib.frament.cube.BlendingFragment;
import com.cloudree.gllib.frament.cube.CubeFragment;
import com.cloudree.gllib.frament.cube.FilterFragment;
import com.cloudree.gllib.frament.cube.IBOFragment;
import com.cloudree.gllib.frament.cube.PerFragmentFragment;
import com.cloudree.gllib.frament.cube.TextureFragment;
import com.cloudree.gllib.frament.cube.VBOFragment;
import com.cloudree.gllib.frament.cylinder.CircleFragment;
import com.cloudree.gllib.frament.cylinder.CylinderFragment;
import com.cloudree.gllib.frament.cylinder.DoubleCircleFragment;
import com.cloudree.gllib.frament.hockey.HockeyFragment;
import com.cloudree.gllib.frament.line.LineFragment;
import com.cloudree.gllib.frament.texture.MultiTextureFragment;
import com.cloudree.gllib.frament.tirangle.TriangleFragment;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/10/10 0010.
 */
public class FragmentUtil {
    /**
     * cylinder fragments
     */
    public static ArrayList<Fragment> getCylinderFragments(){
        ArrayList<Fragment> fragments=new ArrayList<>();
        fragments.add(new CircleFragment());
        fragments.add(new CylinderFragment());
        fragments.add(new DoubleCircleFragment());
        return fragments;
    }
    /**
     * triangle fragments
     */
    public static ArrayList<Fragment> getTriangleFragments(){
        ArrayList<Fragment> fragments=new ArrayList<>();
        fragments.add(new TriangleFragment());
        return fragments;
    }
    /**
     * cube fragments
     */
    public static ArrayList<Fragment> getCubeFragments(){
        ArrayList<Fragment> fragments=new ArrayList<>();
        fragments.add(new CubeFragment());
        fragments.add(new PerFragmentFragment());
        fragments.add(new TextureFragment());
        fragments.add(new BlendingFragment());
        fragments.add(new FilterFragment());
        fragments.add(new VBOFragment());
        fragments.add(new IBOFragment());
        return fragments;
    }
    /**
     * hockey fragments
     */
    public static ArrayList<Fragment> getHockeyFragments(){
        ArrayList<Fragment> fragments=new ArrayList<>();
        fragments.add(new HockeyFragment());
        return fragments;
    }
    /**
     * line fragments
     */
    public static ArrayList<Fragment> getLineFragments(){
        ArrayList<Fragment> fragments=new ArrayList<>();
        fragments.add(new LineFragment());
        return fragments;
    }
    /**
     * texture fragments
     */
    public static ArrayList<Fragment> getTextureFragments(){
        ArrayList<Fragment> fragments=new ArrayList<>();
        fragments.add(new MultiTextureFragment());
        return fragments;
    }


}
